import 'package:flutter/material.dart';
import 'package:my_app/app/widgets/tag/tag_item_widget.dart';

/// tag_group_widget.dart
///
/// Created by fuchuanwei on Thu Apr 13 2023.
///
/// Description: 标签Group 组件
///

class TagGroupWidget extends StatelessWidget {
  final double? spacing;
  final double? runSpacing;

  final List<TagItemWidget> list;
  const TagGroupWidget({
    super.key,
    this.spacing,
    this.runSpacing,
    required this.list,
  });

  @override
  Widget build(BuildContext context) {
    return Wrap(
      spacing: spacing ?? 5.0,
      runSpacing: runSpacing ?? 5.0,
      children: list,
    );
  }
}
